home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / dev / c / minigl.lha / MiniGL / include / mgl / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-27  |  1.2 KB  |  56 lines

  1. /*
  2.  * $Id: log.h,v 1.1.1.1 2000/04/07 19:44:51 tfrieden Exp $
  3.  *
  4.  * $Date: 2000/04/07 19:44:51 $
  5.  * $Revision: 1.1.1.1 $
  6.  *
  7.  * (C) 1999 by Hyperion
  8.  * All rights reserved
  9.  *
  10.  * This file is part of the MiniGL library project
  11.  * See the file Licence.txt for more details
  12.  *
  13.  */
  14.  
  15. #ifndef __LOG_H
  16. #define __LOG_H
  17.  
  18. /*
  19. ** Logging was removed in final version
  20. */
  21.  
  22. /*
  23. ** It is probably difficult to support logging of gl calls on other compilers,
  24. ** since the egcs/gcc preprocessor supports variable argument macros, and
  25. ** I am using it :)
  26. */
  27.  
  28. /*
  29. #ifdef NLOGGING
  30. #define LOG(level, func, format, args...)
  31. #else
  32. #ifdef __PPC__
  33. extern int MGLDebugLevel;
  34. #define LOG(level, func, format, args...) \
  35.     if (MGLDebugLevel >= level)            \
  36.     {                                       \
  37.         kprintf("[MiniGL::%s] ", #func);     \
  38.         kprintf(format , __VA_ARGS__ );           \
  39.         kprintf("\n");                         \
  40.     }
  41. #else
  42. extern int MGLDebugLevel;
  43. #define LOG(level, func, format, args...) \
  44.     if (MGLDebugLevel >= level)            \
  45.     {                                       \
  46.         mykprintf("[MiniGL::%s] ", #func);   \
  47.         mykprintf(format , __VA_ARGS__ );         \
  48.         mykprintf("\n");                       \
  49.     }
  50. #endif
  51.  
  52. #endif
  53.  
  54. */
  55. #endif
  56.